package com.qianfeng.dbsm.admin.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

/**
 * (SysPermission)表实体类
 *
 * @author makejava
 * @since 2022-11-17 20:19:09
 */
@SuppressWarnings("serial")
public class SysPermission extends Model<SysPermission> {
    @ApiModelProperty(value = "权限id")
    private Integer permId;
    @ApiModelProperty(value = "角色id")
    private String permCode;
    @ApiModelProperty(value = "权限名")
    private String permName;
    @ApiModelProperty(value = "权限类型")
    private Integer permType;
    @ApiModelProperty(value = "路径")
    private String permUrl;
    @ApiModelProperty(value = "状态（1开启，2隐藏）")
    private Integer visible;



    public Integer getPermId() {
        return permId;
    }

    public void setPermId(Integer permId) {
        this.permId = permId;
    }

    public String getPermCode() {
        return permCode;
    }

    public void setPermCode(String permCode) {
        this.permCode = permCode;
    }

    public String getPermName() {
        return permName;
    }

    public void setPermName(String permName) {
        this.permName = permName;
    }

    public Integer getPermType() {
        return permType;
    }

    public void setPermType(Integer permType) {
        this.permType = permType;
    }

    public String getPermUrl() {
        return permUrl;
    }

    public void setPermUrl(String permUrl) {
        this.permUrl = permUrl;
    }

    public Integer getVisible() {
        return visible;
    }

    public void setVisible(Integer visible) {
        this.visible = visible;
    }


    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    protected Serializable pkVal() {
        return this.permId;
    }
    }

